<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"
	trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="../../admin.inc.jsp"%>
<script>
	function toSubmit() {		
		var obj = $("#upload");
		var form = $("#form_solution_modelEdit");
		form.submit();
	}
	function callback(success, msg) {
		if (success) {
			alertMsg.info(msg);
			navTab.closeCurrentTab();		
			navTab.reload("", {
				lastTabId : ""
			});
		}else{
			alertMsg.warn(msg);
		}
	}
	

</script>
<div class="pageContent">
	<s:form name="myForm" id="form_solution_modelEdit" action="/admin/solution/modelEdit"
		method="POST" enctype="multipart/form-data" target="hidden_frame">
		<div class="pageFormContent" layoutH="58">
			<p class="nowrap">
				<label style="width:100px;">模特：</label>
				<input id="modelId"  type="hidden" name="model.id"  value="${solutionModelBean.modelId}">
				<input id="modelName" type="text" class="textInput valid" name="model.name" value="${solutionModelBean.modelName}" readonly="readonly"
				 suggesturl="${webContextPath}/admin/modelPickup/pickup" lookupgroup="model" autocomplete="off" >
				<a class="btnLook" href="${webContextPath}/admin/modelPickup/pickup" lookupgroup="model" >查找带回</a>		
			</p>
			
			<p>
				<label style="width:100px;">工作开始时间：</label>
				<input id="workStartTime"  class="Wdate" type="text"  name="solutionModel.workStartTime" 
				value="<fmt:formatDate value='${solutionModelBean.workStartTime}' pattern="yyyy-MM-dd HH:mm:ss" />"  
				onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"  readonly="true">
				<a class="inputDateButton" href="javascript:;">选择</a>
			</p>
			
			<p>
				<label style="width:100px;">工作结束时间：</label>
				<input id="workEndTime"  class="Wdate" type="text"  name="solutionModel.workEndTime" 
				value="<fmt:formatDate value='${solutionModelBean.workEndTime}' pattern="yyyy-MM-dd HH:mm:ss" />"  
				onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"  readonly="true">
				<a class="inputDateButton" href="javascript:;">选择</a>
			</p>
			
			<p>
				<label style="width:100px;">总工作小时数：</label>
				<input type="text" name="solutionModel.workHours"  value='${solutionModelBean.workHours}' >
			</p>
			
			<input type="hidden" name="id" id="type" value="${solutionModelBean.id}" />
			<input type="hidden" name="solutionModel.id" id="type" value="${solutionModelBean.id}" />
			<input type="hidden" name="solutionModel.solutionId" id="solutionId" value="${solutionModelBean.solutionId}" />
		</div>
	</s:form>
	<div class="formBar">
		<ul>
			<li><div class="button">
					<div class="buttonContent">
						<button onclick="toSubmit()" type="button">确定</button>
					</div>
				</div></li>
			<li><div class="button">
					<div class="buttonContent">
						<button type="button" class="close">关闭</button>
					</div>
				</div></li>
		</ul>
	</div>
</div>
<iframe name='hidden_frame' id="hidden_frame" style='display: none'></iframe>